import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:largefriends/res.dart';
import 'package:largefriends/res/lf_color.dart';
import 'package:largefriends/service/lf_auth_service.dart';
import 'package:largefriends/widgets/Ripples.dart';
import 'package:largefriends/widgets/custom_cache_image.dart';

class LfSparkLoading extends StatefulWidget {
  const LfSparkLoading({Key? key}) : super(key: key);

  @override
  State<LfSparkLoading> createState() => _LfSparkLoadingState();
}

class _LfSparkLoadingState extends State<LfSparkLoading> {
  LfAuthService authService = Get.find();
  @override
  Widget build(BuildContext context) {
    return Container(
      width: ScreenUtil().screenWidth,
      height: ScreenUtil().screenHeight,
      padding: EdgeInsets.only(bottom: 80.h),
      child: Ripples(
        size: ScreenUtil().screenWidth,
        color: color514F62,
        child: CustomCacheImage(
          imageUrl: authService.currentAccount!.avatar,
          isCircle: true,
          width: 80.r,
          height: 80.r,
        ),
      ),
    );
  }
}
